package ssw.gui.japplet;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

import ssw.game.GameType;

public class IntroJPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5305374300713777951L;

	private final AppCore bridge;

	final JButton btnTwoLetterWords = new JButton("Two Letter Words");

	public IntroJPanel(final AppCore b) {
		super();
		bridge = b;
		createGui();
	}

	private void createGui() {
		add(btnTwoLetterWords, BorderLayout.CENTER);

		// setup listeners
		btnTwoLetterWords.addActionListener(bridge);
	}

	public GameType getGameType() {
		return GameType.TWO_LETTER_WORDS;
	}
}
